<template>
  <el-form ref="form" :model="form" label-width="80px">
    <el-form-item label="景点名称">
      <el-input v-model="form.name"></el-input>
    </el-form-item>
    <el-form-item label="简介">
      <el-input type="textarea" v-model="form.desc"></el-input>
    </el-form-item>
    <el-form-item label="分类">
  <el-select v-model="form.region" placeholder="请选择景点类别">
    <el-option label="区域一" value="shanghai"></el-option>
    <el-option label="区域二" value="beijing"></el-option>
  </el-select>
</el-form-item>
    <el-form-item>
      <el-button type="primary" @click="onSubmit">立即更新</el-button>
      <el-button @click="onCancel">取消</el-button>
    </el-form-item>
  </el-form>
</template>

<script>
  export default {
    data() {
      return {
        form: {
          name: '',
          region: '',
          date1: '',
          date2: '',
          delivery: false,
          type: [],
          resource: '',
          desc: ''
        }
      }
    },
    methods: {
      onSubmit() {
        console.log('submit!');
      },
      onCancel(){
        this.$router.go(-1);
      }
    }
  }
</script>
